<?php

declare(strict_types=1);
/**
 * Created by PhpStorm.
 * User: yangfan
 * Date: 2019/11/23
 * Time: 5:39 PM
 */

namespace App\Entity;

use App\Models\TransactionRecord;

class TransactionRecordEntity extends ABaseEntity
{
    public function __construct(TransactionRecord $model)
    {
        $this->model = $model;
    }

    /**
     * @return int
     */
    public function getId()
    {
        return $this->model->id;
    }

    /**
     * @return int
     */
    public function getDisId()
    {
        return $this->model->dis_id;
    }

    public function setDisId(int $disId)
    {
        $this->model->dis_id = $disId;
    }

    /**
     * @return int
     */
    public function getType()
    {
        return $this->model->type;
    }

    public function setType(int $type)
    {
        $this->model->type = $type;
    }

    /**
     * @return string
     */
    public function getMoney()
    {
        return $this->model->money;
    }

    /**
     * @param $money
     *
     * @return mixed
     */
    public function setMoney($money)
    {
        $this->model->money = $money;
    }

    /**
     * 交易号
     * @return string
     */
    public function getTradeNo(): string
    {
        return $this->model->trade_no;
    }

    /**
     * 交易号
     * @param string $value
     */
    public function setTradeNo(string $value)
    {
        $this->model->trade_no = $value;
    }

    /**
     * @return string
     */
    public function getCreatedAt()
    {
        return $this->model->created_at;
    }

    public function setCreatedAt(string $createdAt)
    {
        $this->model->created_at = $createdAt;
    }
}
